<template>
    <a-modal width="900px" centered :footer="null" v-model:visible="visible" @cancel="emits('cancel')" title="充值">
        <subscription />
    </a-modal>
</template>

<script lang='ts' setup>
import subscription from '@/pages/subscription/index.vue'
let visible = ref<boolean>(false)
const props = withDefaults(defineProps<{
    show: boolean
}>(), {
    show: false
})
const emits = defineEmits(['cancel'])
watchEffect(() => {
    visible.value = JSON.parse(JSON.stringify(props.show))
})
</script>